﻿@model Data.Tables.LoginModel

@{
    ViewBag.Title = "Log in";
}

<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2>Login</h2>
    </div>
    <div class="col-lg-2"></div>
</div>
@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
{
    <fieldset>
        <div class="wrapper wrapper-content animated fadeInRight">
            <div class="row">
                <div class="col-lg-5">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h2>Use a local account to log in.</h2>
                            <div>@Html.ValidationMessageFor(m => m.UserName)</div>
                            <div>@Html.ValidationMessageFor(m => m.Password)</div>
                        </div>
                        <div class="ibox-content">
                            <section id="loginForm">


                                @Html.AntiForgeryToken()
                                @Html.ValidationSummary(true)


                                <table class="table table-bordered table-striped">
                                    <tr>
                                        <th>
                                            @Html.LabelFor(m => m.UserName)
                                        </th>
                                        <td>
                                            @Html.TextBoxFor(m => m.UserName, new { @class = "text-box single-line" })
                                        </td>
                                        
                                    </tr>
                                    <tr>
                                        <th>
                                            @Html.LabelFor(m => m.Password)
                                        </th>
                                        <td>
                                            @Html.PasswordFor(m => m.Password, new { @class = "text-box single-line" })
                                        </td>
                                        
                                    </tr>
                                </table>
                                <input class="btn btn-primary" type="submit" value="Log in" />


                            </section>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </fieldset>
}
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
